package elementui.form;

/**
 * javazgw@gmail.com windown 10
 * 2020/6/28 22:58
 */
public class InputNumber extends  FormItem {
    @Override
    String getDefaultHmtl() {
        return "<template>\n" +
                "  <el-input-number v-model=\""+getVmode()+"\" @change=\"handleChange\" :min=\"1\" :max=\"10\" label=\"描述文字\"></el-input-number>\n" +
                "</template>";
    }

    @Override
    String getDefaultScript() {
        return " handleChange(value) {\n" +
                "        console.log(value);\n" +
                "      }";
    }

//    @Override
//    String getData() {
//        return " num: 1";
//    }
}
